package org.sakaiproject.db.api;


/**
 * database methods.
 */
public interface iServiceSql
{
	/**
	 * 返回根据主键删除语句
	 */
	String getDeleteSql();

	/**
	 * 返回插入语句
	 */
	String getInsertSql();

	/**
	 * 返回根据主键修改语句
	 */
	String getUpdateSql();

	/**
	 * 返回根据主键查询语句
	 */
	String getbykeySql();

	/**
	 * 返回分页查询语句
	 */
	String getRecbyPageSql();

	/**
	 * 返回根据查询条件的记录数
	 */
	public String getCountSql1();	
	

	
	/**
	 * The maximum size of a "SELECT... WHERE... IN" query varies by database, but when it's reached, the
	 * error can be difficult to interpret. This should be set to a reasonably safe value and used by
	 * clients to break very long queries into a set of somewhat shorter ones. 
	 */
	int getMaxInputsForSelectWhereInQueries();
}
